﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyCalManager.Helper
{


    public class CustomDialogMessage
    {
        public Action<CustomDialogMessageResult> Callback { get; private set; }
        public CustomMessageBoxImage customMessageBoxImage { get; set; }
        public CustomMessageBoxButton customMessageBoxButton { get; set; }
        public string Content { get; set; }
        public bool isDialog { get; set; }

        public CustomDialogMessage()
        {

        }

        public CustomDialogMessage(string content, CustomMessageBoxImage MsgBoxImage, CustomMessageBoxButton MsgBoxButton, Action<CustomDialogMessageResult> callback)
        {
            this.Content = content;
            this.customMessageBoxImage = MsgBoxImage;
            this.customMessageBoxButton = MsgBoxButton;
            this.Callback = callback;
        }

        public void ProcessCallback(CustomDialogMessageResult result)
        {
            if (this.Callback != null)
            {
                this.Callback(result);
            }
        }



    }

}
